import requests
url = "https://www.python-spider.com/api/challenge6"
session = requests.Session()
cookies = {
    'sessionid': 'wkuzkfozxtqgmpdbpc10xarc4noyp42x',
}
for page in range(40, 101):
    data = {
        "page": page
    }
    response = session.post(url, data=data, cookies=cookies)
    print(response.text)

# set-cookie
